import { TableColumnData } from "@arco-design/web-vue";

export const columns: TableColumnData[] = [
  {
    title: "任务名称",
    dataIndex: "name"
  },
  {
    title: "任务类型",
    dataIndex: "type",
    width: 120,
    align: "center"
  },
  {
    title: "开始时间",
    dataIndex: "start"
  },
  {
    title: "结束时间",
    dataIndex: "stop"
  },
  {
    title: "状态",
    dataIndex: "status",
    slotName: "status"
  },
  // {
  //   title: "ID",
  //   dataIndex: "id",
  // },
  {
    title: "操作",
    dataIndex: "actions",
    slotName: "actions"
  }
];
export const goodColumns = [
  {
    title: "商品名称",
    dataIndex: "goodsName",
    slotName: "goodsName"
  },
  {
    title: "条形码",
    dataIndex: "barCode"
  },
  {
    title: "零售价",
    dataIndex: "retailPrice"
  }
];

// export const transferColumns = computed((): TransferItem[] => {
//   return columns.map((e: any) => {
//     return {
//       label: e.title,
//       value: e.dataIndex,
//       disabled: false
//     };
//   });
// });
